﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PersonClass
{
    class Person
    {
        string name;
        int? age;

        public Person(string name)
        {
            this.name = name;
            this.age = null;
        }

        public Person(string name, int age)
            :this(name)
        {
            this.age = age;
        }

        public override string ToString()
        {
            string info = "Name: " + this.name + "\nAge: ";
            if (this.age == null)
            {
                info += "<unspecified>";
            }
            else
            {
                info += this.age;
            }
            return info;
        }
    }
}
